import os

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

CACHES = {
    "default": {
        "BACKEND": "django_redis.cache.RedisCache",
        "LOCATION": "redis://127.0.0.1:6379",
        "OPTIONS": {
            "CLIENT_CLASS": "django_redis.client.DefaultClient",
            "CONNECTION_POOL_KWARGS": {"max_connections": 1000},
            # "PASSWORD": "123",
            "PASSWORD":"123456",
        }
    }

}


COS_SECRET_ID = 'AKIDAHUghdOE0c7izHYt9OXgnov5X7aq1Ml6'
COS_SECRET_KEY = 'X8lTwXslikhr5Jcr3Kar4Kg0IYo1DOWa'



# ALI_GATEWAY = "https://openapi.alipaydev.com/gateway.do"
ALI_GATEWAY = "https://openapi-sandbox.dl.alipaydev.com/gateway.do"
ALI_PRI_KEY_PATH=os.path.join(BASE_DIR, 'files/应用私钥RSA2048.txt')
ALI_PUB_KEY_PATH=os.path.join(BASE_DIR, 'files/支付宝公钥.txt')
ALI_NOTIFY_URL='http://127.0.0.1:8000/web/pay/nootify/'
ALI_RETURN_URL='http://127.0.0.1:8000/web/index'
ALI_APPID= "9021000139652129"
            #2021004161640722
#            2021004161640722
#            9021000139652129